import {lazy} from "react" // 路由懒加载
let routerlist = [
    {
        path:"/home",
        component:lazy(()=>import("../views/home")),
        title:"首页"
    },
    {
        path:"/detail",
        component:lazy(()=>import("../views/detail")),
        title:"详情"
    },
    {
        path:"/shopcar",
        component:lazy(()=>import("../views/shopcar")),
        title:"购物车"
    },
    {
        from:"/",
        to:"/home"
    }

]
export default routerlist